#coding:utf-8

from smtplib import SMTP_SSL
from email.message import EmailMessage

content = None
with open("template.tpl", "r", encoding="utf-8") as f:
    content = f.read()

me = "zhangshengping@appscomm.cn"
you = ["zhangshengping@appscomm.cn","test_all@appscomm.cn","yanghao@appscomm.cn","shenxiaohong@appscomm.cn","lijinshi@appscomm.cn","fudongjie@appscomm.cn","chenyanlin@appscomm.cn","zhangying@appscomm.cn","FionaTian@appscomm.cn","linxu@appscomm.cn","chenzijie@appscomm.cn","hexiaobin@appscomm.cn","yangwulei@appscomm.cn","duchunhui@appscomm.cn","libingqiu@appscomm.cn","chenjieying@appscomm.cn","fengtuyun@appscomm.cn","wangjianhong@appscomm.cn","lilifang@appscomm.cn","luohuigui@appscomm.cn","fanpeng@appscomm.cn","zhongda@appscomm.cn","huangsihua@appscomm.cn","sujiang@appscomm.cn","chanpin@appscomm.cn"]
msg = EmailMessage()
msg.set_content(content)
msg['Subject'] = "【版本发布】L42AP_GN_FW_F0.3(build04)"
msg["From"] = me
msg["To"] = you

s = SMTP_SSL("smtp.appscomm.cn", 465)
s.login(me,"1024@Zhang")
s.send_message(msg)
s.quit()